package com.bbcare.oms.plat.store.ibatis;

import com.bbcare.oms.plat.entity.Tenant;
import java.util.List;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@CacheNamespace(readWrite=true)
public abstract interface ITenantDAO
{
  @Select({"select *,ref_tenant_id as refTenantId from au_tenant where id=#{id}"})
  @Results({@org.apache.ibatis.annotations.Result(property="rootGroup.id", column="root_group_id")})
  public abstract Tenant select(String paramString)
    throws Exception;
  
  @Update({"update au_tenant set username=#{username},password=#{password}", "where id=#{id}"})
  public abstract int update(Tenant paramTenant)
    throws Exception;
  
  @Select({"select * from au_tenant limit #{start},#{rows}"})
  @Results({@org.apache.ibatis.annotations.Result(property="rootGroup.id", column="root_group_id")})
  public abstract List<Tenant> query(@Param("start") int paramInt1, @Param("rows") int paramInt2)
    throws Exception;
}


/* Location:              C:\Users\ZCL\Desktop\oms\oms\oms\WEB-INF\classes\com.zip!\com\bbcare\oms\plat\store\ibatis\ITenantDAO.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */